package homework.extendwork2.coding;

public class ElectCar extends  Car {
    private String strElectBrand;
    public ElectCar(String strBrand,String strColor ,String strElectBrand ){
        super(strBrand,strColor);
        this.setStrElectBrand(strElectBrand);
    }

    public String getStrElectBrand() {
        return strElectBrand;
    }

    @Override
    public void show() {
        System.out.printf("这是一台使用%s牌电池的电动车",this.getStrElectBrand());
    }

    public void setStrElectBrand(String strElectBrand) {
        this.strElectBrand = strElectBrand;
    }
}
